<?php

namespace app\index\controller;

use think\Controller;

class Lang extends Controller {
	function set() {
		$lang = $this->request->param ( 'lang' );
		$lang ? cookie ( 'think_var', $lang ) : '';
		echo "<script type='text/javascript'>history.go(-1)</script>";
	}
}

